﻿using System;
using System.ComponentModel;
using System.Windows.Media;

namespace ZhuXingFamilys.Fileupload
{
    public class Fileuploadinfo : INotifyPropertyChanged
    {
        private string familyNmae;
        public string FamilyNmae
        {
            get
            {
                return familyNmae;
            }
            set
            {
                familyNmae = value;
                NotifyPropertyChanged(nameof(FamilyNmae));
            }
        }

        private string familyCategory;
        public string FamilyCategory
        {
            get
            {
                return familyCategory;
            }
            set
            {
                familyCategory = value;
                NotifyPropertyChanged(nameof(FamilyCategory));
            }
        }


        private string revitversion;
        public string RevitVersion
        {
            get
            {
                return revitversion;
            }
            set
            {
                revitversion = value;
                NotifyPropertyChanged(nameof(RevitVersion));
            }
        }


        private string familyFileCategory;
        public string FamilyFileCategory
        {
            get
            {
                return familyFileCategory;
            }
            set
            {
                familyFileCategory = value;
                NotifyPropertyChanged(nameof(FamilyFileCategory));
            }
        }

        private bool isChecked;
        public bool IsChecked
        {
            get
            {
                return isChecked;
            }
            set
            {
                isChecked = value;
                NotifyPropertyChanged(nameof(IsChecked));
            }
        }

        private ImageSource familyimage;
        public ImageSource Familyimage
        {
            get
            {
                return familyimage;
            }
            set
            {
                familyimage = value;
                NotifyPropertyChanged(nameof(Familyimage));
            }
        }

        public string familyfullpath;
        public string Familyfullpath
        {
            get
            {
                return familyfullpath;
            }
            set
            {
                familyfullpath = value;
                NotifyPropertyChanged(nameof(Familyfullpath));
            }
        }
        /// <summary>
        /// 属性改变事件
        /// </summary>
        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
    }
}